﻿namespace Entity
{
    /// <summary>
    /// 基类模型
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime Created { get; set; } = DateTime.Now;
    }

    /// <summary>
    /// 余额基类模型
    /// </summary>
    public class MoneyBaseEntity : BaseEntity
    {
        /// <summary>
        /// 账户余额
        /// </summary>
        public decimal Money { get; set; } = 0;
    }
}
